g++ -shared -static Linifile.cpp -o Linifile.dll -Wl,--out-implib,Linifile.lib